VERSION 5.00
Object = "{8E27C92E-1264-101C-8A2F-040224009C02}#7.0#0"; "MSCAL.OCX"
Begin VB.Form frmDateCertain 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Date Certain Delivery Information"
   ClientHeight    =   2910
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4695
   Icon            =   "frmDateCertain.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   2910
   ScaleWidth      =   4695
   StartUpPosition =   1  'CenterOwner
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFFFFF&
      Caption         =   "Date Certain"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000080FF&
      Height          =   2655
      Left            =   120
      TabIndex        =   4
      Top             =   120
      Width           =   4455
      Begin MSACAL.Calendar Calendar1 
         Height          =   2295
         Left            =   600
         TabIndex        =   5
         TabStop         =   0   'False
         Top             =   180
         Width           =   3255
         _Version        =   524288
         _ExtentX        =   5741
         _ExtentY        =   4048
         _StockProps     =   1
         BackColor       =   16777215
         Year            =   2004
         Month           =   2
         Day             =   9
         DayLength       =   1
         MonthLength     =   2
         DayFontColor    =   0
         FirstDay        =   1
         GridCellEffect  =   1
         GridFontColor   =   10485760
         GridLinesColor  =   -2147483632
         ShowDateSelectors=   -1  'True
         ShowDays        =   -1  'True
         ShowHorizontalGrid=   -1  'True
         ShowTitle       =   0   'False
         ShowVerticalGrid=   -1  'True
         TitleFontColor  =   10485760
         ValueIsNull     =   -1  'True
         BeginProperty DayFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Arial"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty GridFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Arial"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         BeginProperty TitleFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "Arial"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
      End
      Begin VB.TextBox f3024 
         Height          =   315
         Left            =   1800
         TabIndex        =   0
         Top             =   360
         Width           =   2055
      End
      Begin VB.TextBox f3023 
         Height          =   315
         Left            =   1800
         TabIndex        =   1
         Top             =   840
         Width           =   1575
      End
      Begin VB.CommandButton cmdCancel 
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         Caption         =   "&Cancel"
         Height          =   315
         Left            =   2520
         MaskColor       =   &H0080C0FF&
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   1560
         UseMaskColor    =   -1  'True
         Width           =   1215
      End
      Begin VB.CommandButton cmdSave 
         Appearance      =   0  'Flat
         BackColor       =   &H00E0E0E0&
         Caption         =   "&Save/Exit"
         Height          =   315
         Left            =   720
         MaskColor       =   &H0080C0FF&
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   1560
         UseMaskColor    =   -1  'True
         Width           =   1215
      End
      Begin VB.Label Label1 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Telephone:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   480
         TabIndex        =   7
         Top             =   420
         Width           =   1215
      End
      Begin VB.Label Label3 
         Alignment       =   1  'Right Justify
         BackColor       =   &H00FFFFFF&
         Caption         =   "Delivery Date:"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   8.25
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   360
         TabIndex        =   6
         Top             =   900
         Width           =   1335
      End
      Begin VB.Image Image2 
         Height          =   345
         Left            =   3480
         Picture         =   "frmDateCertain.frx":030A
         Stretch         =   -1  'True
         Top             =   810
         Width           =   345
      End
   End
End
Attribute VB_Name = "frmDateCertain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'---------------------------------------------------------------------------------------
' Procedure : Calendar1_DblClick()
' DateTime  : 2/18/2004
' Purpose   : Assign the date selected to Date field
'---------------------------------------------------------------------------------------
'
Private Sub Calendar1_DblClick()
    f3023 = Calendar1
    Calendar1.Visible = False
End Sub
'---------------------------------------------------------------------------------------
' Procedure : cmdCancel_Click()
' DateTime  : 2/18/2004
' Purpose   : Cancel button hides form
'---------------------------------------------------------------------------------------
'
Private Sub cmdCancel_Click()
    Me.Hide
    If frmShip.Visible Then frmShip.SetFocus
End Sub
'---------------------------------------------------------------------------------------
' Procedure : cmdSave_Click()
' DateTime  : 2/18/2004
' Purpose   : Save button assigns Date Certain fields to global vars.
'---------------------------------------------------------------------------------------
'
Private Sub cmdSave_Click()
    Call AssignFormGlobalVars
    Me.Hide
    If frmShip.Visible Then frmShip.SetFocus
End Sub
'---------------------------------------------------------------------------------------
' Procedure : AssignFormGlobalVars()
' DateTime  : 4/26/2006
' Purpose   : Assign the form's global vars
'---------------------------------------------------------------------------------------
'
Public Sub AssignFormGlobalVars()
    
    g_str3023 = Format(f3023, "YYYYMMDD")
    g_str3024 = f3024

End Sub
'---------------------------------------------------------------------------------------
' Procedure : f3024_Change()
' DateTime  : 2/18/2004
' Purpose   : Phone # is numeric only with a max length of 10
'---------------------------------------------------------------------------------------
'
Private Sub f3024_Change()
    Call NumericOnly(f3024, False)
    Call CheckLength(f3024, 10)
End Sub

Private Sub Form_Activate()
    f3024.SetFocus
End Sub

'---------------------------------------------------------------------------------------
' Procedure : Form_KeyDown()
' DateTime  : 2/17/2005
' Purpose   : Enter key pressed sends a TAB to move to next field
'---------------------------------------------------------------------------------------
'
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If Not TypeOf Me.ActiveControl Is CommandButton Then
        If Shift = 0 And KeyCode = 13 Then
            SendKeys "{TAB}"
        End If
    End If
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Form_Load()
' DateTime  : 2/18/2004
' Purpose   : Set the Calendar to today, set the Deliver Date to today + 5 days and set
'           : the phone # to the recipient phone #.
'---------------------------------------------------------------------------------------
'
Private Sub Form_Load()
    Calendar1.Today
    Calendar1.Visible = False
    f3023 = Date + 5
    f3024 = frmShip.f18
End Sub
'---------------------------------------------------------------------------------------
' Procedure : Image2_Click()
' DateTime  : 2/18/2004
' Purpose   : Show calendar
'---------------------------------------------------------------------------------------
'
Private Sub Image2_Click()
    Calendar1.Visible = True
End Sub
